package classeMetier;
import java.util.ArrayList;

import com.google.gson.Gson;

public class Json {
	ArrayList project, epic, scenario, userstory;
	
		
	public Json(int classe, ArrayList ar){
		switch (classe)
		{
			case 1 : this.project = ar; break;
			case 2 : this.epic = ar; break;
			case 3 : this.userstory = ar; break;
			case 4 : this.scenario = ar; break;
		}
	}
	
	public Json(ArrayList project, ArrayList epic, ArrayList userstory, ArrayList scenario){
		this.project = project;
		this.epic = epic;
		this.userstory = userstory;
		this.scenario = scenario;
		
	}
	
	public String toJson(){
		Gson gson = new Gson();
		return gson.toJson(this);
	}
}
